how to order a dataframe by rank

join shbcf.ru